/**
 * Created By cjself 2018/8/21
 */
import axiosUtils from '@api/env/axiosEnv'

let customAxios = axiosUtils._initAxios()

// 查找地址对象
export function getUserAddressInfo (param) {
  return customAxios({
    url: '/XlUserAddress/getList',
    method: 'post',
    data: param
  })
}

// 查找地址对象包括上级
export function getUserAddressMoreInfo (param) {
  console.log(param)
  return customAxios({
    url: '/XlUserAddress/getFleetList',
    method: 'post',
    data: param
  })
}

// 新增地址对象 修改对象
export function addUserAddress (param) {
  console.log(param)
  return customAxios({
    url: '/XlUserAddress/save',
    method: 'post',
    data: param
  })
}

// 删除地址
export function delectUserAddress (param) {
  console.log(param)
  return customAxios({
    url: '/XlUserAddress/del',
    method: 'post',
    data: {
      id: param
    }
  })
}
